<div class="fsh-pop">
    <div id="add_form" class="layui-form">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>学校</label>
                <div class="layui-input-block">
                    <input id="_schoolName2" type="text" name="schoolName" readonly lay-verify="" placeholder="请选择"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>代码</label>
                <div class="layui-input-block">
                    <input id="_schoolCode2" type="text" name="schoolCode"  lay-verify=""
                           placeholder="请选择" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>班级名称</label>
                <div class="layui-input-block">
                    <input id="_squadName" type="text" name="schoolName" lay-verify="" readonly
                           placeholder="请输入关键字" class="layui-input"
                           value="<%=squad_name%>">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>班级代码</label>
                <div class="layui-input-block">
                    <input id="_squadCode" type="text" name="squadCode" lay-verify="" readonly
                           placeholder="请输入关键字" class="layui-input">
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>用户ID</label>
                <div class="layui-input-block">
                    <input type="text" name="user_id" lay-verify="" placeholder="请输入关键字" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>类型</label>
                <div class="layui-input-block">
                    <select name="type" class="layui-input">
                        <option value="1">课程任务</option>
                        <option value="2">作业任务</option>
                        <option value="3">考试任务</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>业务ID</label>
                <div class="layui-input-block">
                    <input lay-verify="required" placeholder="请输入内容" class="layui-input" name="bus_id" >
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>开始时间</label>
                <div class="layui-input-block">
                    <input id="startTime" lay-verify="required" placeholder="请输入内容" class="layui-input" name="startTime"
                           readonly>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>结束时间</label>
                <div class="layui-input-block">
                    <input id="endTime" lay-verify="required" placeholder="请输入内容" class="layui-input" name="endTime"
                           readonly>
                </div>
            </div>
        </div>
    </div>

</div>
<style type="text/css">
</style>
<script type="text/javascript">
    layui.use(['table', 'laydate', 'form'], function () {
        var table = layui.table;
        var layDate = layui.laydate;
        var form = layui.form;

        //开始日期
        layDate.render({elem: '#startTime'});
        layDate.render({elem: '#endTime'});
        //是否毕业
        form.on('switch(switchTest)', function (data) {
            $('#status').val(this.checked ? 1 : 0);
        });
        // 选择学校
        selectSchool('_schoolName2', '_schoolCode2');
        //选择班级
        selectSquad();
    });
</script>
